<div id="new-expense">
  <h3>Add an expense</h3>
  <% form_remote_for :expense,
    Expense.new,
    :url => hash_for_expenses_url(:project => @project, :action => 'new'),
    :loading => 'ExpenseTracker.disableExpenseForm()',
    :complete => 'ExpenseTracker.enableExpenseForm()',
    :html => { :id => 'expense-form' } do |f| %>
    <label for="expense_description">Description:</label><br />
    <%= f.text_field 'description', :size => 60 %><br />
    <label for="expense_amount">Amount:</label><br />
    <%= f.text_field 'amount', :size => 10 %><br /><br />
    <%= submit_tag 'Add Expense' %>    
  <% end %>
</div>


